$.ajax({
    url: contextPath + '/admin/banners',
    type: 'DELETE',
    data: {id: id},
    success: function(response) {
        if (response.code === 0) {
            window.location.href = contextPath + '/admin/banners';
        } else {
            alert(response.msg);
        }
    }
}); 